import request from '@/utils/request'

// 查询app给设备发送的消息，设备端轮训获取列表
export function listDevice_message(query) {
  return request({
    url: '/ora/device_message/list',
    method: 'get',
    params: query
  })
}

// 查询app给设备发送的消息，设备端轮训获取详细
export function getDevice_message(id) {
  return request({
    url: '/ora/device_message/' + id,
    method: 'get'
  })
}

// 新增app给设备发送的消息，设备端轮训获取
export function addDevice_message(data) {
  return request({
    url: '/ora/device_message',
    method: 'post',
    data: data
  })
}

// 修改app给设备发送的消息，设备端轮训获取
export function updateDevice_message(data) {
  return request({
    url: '/ora/device_message',
    method: 'put',
    data: data
  })
}

// 删除app给设备发送的消息，设备端轮训获取
export function delDevice_message(id) {
  return request({
    url: '/ora/device_message/' + id,
    method: 'delete'
  })
}
